package net.niufei.study.cpatterns.producerconsumer;

public class Main {

	public static void main(String[] args) {
		Resource resource = new Resource();
		
		for(int i = 0; i < 3; i++) {
			new Thread(new Producer(resource)).start();
		}
		
		for(int i = 0; i < 5; i++) {
			new Thread(new Consumer(resource)).start();
		}
	}
}
